package dto;

public class ImpUseRoom {
	private int impUseDayNo;
	private String impUseDay;
	private RoomDTO room;
	private int roomNo;
	
	public ImpUseRoom() {
		super();
	}
	public ImpUseRoom(int impUseDayNo, String impUseDay, RoomDTO room,
			int roomNo) {
		super();
		this.impUseDayNo = impUseDayNo;
		this.impUseDay = impUseDay;
		this.room = room;
		this.roomNo = roomNo;
	}
	public int getImpUseDayNo() {
		return impUseDayNo;
	}
	public void setImpUseDayNo(int impUseDayNo) {
		this.impUseDayNo = impUseDayNo;
	}
	public String getImpUseDay() {
		return impUseDay;
	}
	public void setImpUseDay(String impUseDay) {
		this.impUseDay = impUseDay;
	}
	public RoomDTO getRoom() {
		return room;
	}
	public void setRoom(RoomDTO room) {
		this.room = room;
	}
	public int getRoomNo() {
		return roomNo;
	}
	public void setRoomNo(int roomNo) {
		this.roomNo = roomNo;
	}
	@Override
	public String toString() {
		return "ImpUseRoom [impUseDayNo=" + impUseDayNo + ", impUseDay="
				+ impUseDay + ", room=" + room + ", roomNo=" + roomNo + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((impUseDay == null) ? 0 : impUseDay.hashCode());
		result = prime * result + impUseDayNo;
		result = prime * result + ((room == null) ? 0 : room.hashCode());
		result = prime * result + roomNo;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ImpUseRoom other = (ImpUseRoom) obj;
		if (impUseDay == null) {
			if (other.impUseDay != null)
				return false;
		} else if (!impUseDay.equals(other.impUseDay))
			return false;
		if (impUseDayNo != other.impUseDayNo)
			return false;
		if (room == null) {
			if (other.room != null)
				return false;
		} else if (!room.equals(other.room))
			return false;
		if (roomNo != other.roomNo)
			return false;
		return true;
	}
	
}
